/**
 * http://usejsdoc.org/
 * @class concreteDecoratorB
 */
var util = require("util"),
	Decorator = require("./decorator");

/**
 * 
 * @desc 定义ConcreteDecoratorB函数类
 *
 */
function ConcreteDecoratorB(){
	Decorator.call(this);
	this.operation = function(){
		Decorator.operation;//调用被装饰类的operation基本方法
		console.log('add some decorator by ConcreteDecoratorB');
	};
	
	this.addedBehavior = function(){
		console.log('add new method by ConcreteDecoratorB');
	};
}

/**设置ConcreteDecoratorB 继承Decorator类*/
util.inherits(ConcreteDecoratorB, Decorator);

/**暴露ConcreteDecoratorB类*/
module.exports = ConcreteDecoratorB;